use tokio::fs;

use crate::error::AppErr;



pub const DATA_DIR: &'static str = "./data";
pub const WEB_DIR: &'static str = "./data/web";
pub const HTML_PATH: &'static str = "./data/web/index.html";
pub const WEB_ADDR: &'static str = "0.0.0.0:18880";


pub async fn init() -> Result<(), AppErr> {
    fs::create_dir_all(WEB_DIR).await?;
    Ok(())
}

